When a user selects an object by clicking an icon in the Object palette or by choosing an item in the Insert menu, the following chain of events occurs:
1 | The object file is scanned for a FORM tag. If a form exists—and if the Show Dialog When Inserting Objects option is selected in the General preferences—Dreamweaver calls the windowDimensions() function, if defined, to determine the size of the dialog box in which to display the form. If no form exists in the object file, Dreamweaver does not display a dialog box, and step 2 is skipped. |
2 | If Dreamweaver displayed a dialog box in step 1, the user enters parameters for the object (such as the number of rows and columns in a table) in the dialog box and clicks OK. |
3 | The objectTag() function is called, and its return value is inserted into the document after the current selection (it does not replace the current selection). |
![]() |